from time import sleep
from unittest import TestCase

from selenium import webdriver

from po_study.po.LoginPage import LoginPage


class TestEshop(TestCase):
    def test_eshop_login(self):
        driver=webdriver.Chrome()
        login=LoginPage(driver)
        login.open('http://192.168.20.244/ecshop/admin/privilege.php?act=login')
        login.input_username()
        login.input_password()
        login.click_login_button()
        sleep(5)